package com.gome.ocean.common.enums;


/**
 * 
 *
 * @author liyuefeng
 */
public enum SmsUrl {

	sitUrl("sit","http://loom-uat.ec.api/smsSend"),
	uatUrl("uat","http://loom-uat.ec.api/smsSend"),
	preUrl("pre","http://loom-uat.ec.api/smsSend"),
	liveUrl("live","http://loom.ec.api/smsSend");
	
	private String env;
	private String url;

    private SmsUrl(String env,String url) {
        this.env = env;
        this.url = url;
    }
    
 // 普通方法
    public static String getSmsUrl(String env) {
      for (SmsUrl c : SmsUrl.values()) {
        if (c.getEnv().equals(env)) {
          return c.getUrl();
        }
      }
      return null;
    }
 
    // get set 方法
    public String getUrl() {
      return url;
    }
 
    public void setUrl(String url) {
      this.url = url;
    }
 
    public String getEnv() {
      return env;
    }
 
    public void setIndex(String env) {
      this.env = env;
    }
}
